package com.cuiweiyou.pipixiaautomator;

import android.os.Bundle;
import android.view.View;
import android.widget.ListView;

import androidx.appcompat.app.AppCompatActivity;

import java.util.ArrayList;
import java.util.List;

public class AboutActivity extends AppCompatActivity implements View.OnClickListener {

    private ListView listView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_about);
        StatusBarUtil.setWindowStatusBarColor(this, R.color.color_status_bar);

        List<String> technologys = new ArrayList<>();
        technologys.add("AccessibilityService");

        PipixiaListAdapter adapter = new PipixiaListAdapter(technologys);

        listView = findViewById(R.id.listView);
        listView.setAdapter(adapter);

        findViewById(R.id.backButton).setOnClickListener(this);
    }

    @Override
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.backButton: {
                finish();
                break;
            }
        }
    }

}
